/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.opgea.token.domain.model;

/**
 * 
 * @author Ramesh
 */
public class TokenStatusReplyModel implements Comparable<TokenStatusReplyModel> {

    private Integer tokenNo;
    private String name;
    private Long companyId;
    private String companyName;
    private String destinationName;
    private String additionalMessage = "";
    private String from = "OPGEA";
    private String status;
    private Integer tokenPositionInQueue;

    public String getAdditionalMessage() {
	return additionalMessage;
    }

    public void setAdditionalMessage(String additionalMessage) {
	this.additionalMessage = additionalMessage;
    }

    public Long getCompanyId() {
	return companyId;
    }

    public void setCompanyId(Long companyId) {
	this.companyId = companyId;
    }

    public String getCompanyName() {
	return companyName;
    }

    public void setCompanyName(String companyName) {
	this.companyName = companyName;
    }

    public String getDestinationName() {
	return destinationName;
    }

    public void setDestinationName(String destinationName) {
	this.destinationName = destinationName;
    }

    public String getFrom() {
	return from;
    }

    public void setFrom(String from) {
	this.from = from;
    }

    public Integer getTokenNo() {
	return tokenNo;
    }

    public void setTokenNo(Integer tokenNo) {
	this.tokenNo = tokenNo;
    }

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

    public String getStatus() {
	return status;
    }

    public void setStatus(String status) {
	this.status = status;
    }

    public Integer getTokenPositionInQueue() {
	return tokenPositionInQueue;
    }

    public void setTokenPositionInQueue(Integer tokenPositionInQueue) {
	this.tokenPositionInQueue = tokenPositionInQueue;
    }

    @Override
    public String toString() {
	return "TokenStatusReplyModel{" + "tokenNo=" + tokenNo + ", name="
		+ name + ", companyId=" + companyId + ", companyName="
		+ companyName + ", destinationName=" + destinationName
		+ ", additionalMessage=" + additionalMessage + ", from=" + from
		+ ", status=" + status + ", tokenPositionInQueue="
		+ tokenPositionInQueue + '}';
    }

    @Override
    public int compareTo(TokenStatusReplyModel tokenStatusReplyModel) {
	if (this.tokenNo < tokenStatusReplyModel.tokenNo) {
	    return -1;
	} else {
	    return 0;
	}
    }

}
